package com.bean;

import java.sql.Timestamp;
import java.util.Objects;

/**
 * @author LEIKE
 * @Title : EDelivery
 * @Description: 快递员bean类
 * @Date_Created_in: 2021/5/26 16:40
 * @Modified_By:
 * @Project: com.bean
 */
public class EDelivery {
    private int id;
    private String name;
    private String phone;
    private String idNumber;
    private String passWord;
    private String deliveryNumber;
    private Timestamp registeredTime;
    private Timestamp lastTime;
    private int status;

    @Override
    public String toString() {
        return "EDelivery{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }

    public EDelivery(int id, String name, String phone, String idNumber, String passWord, String deliveryNumber, Timestamp registeredTime, Timestamp lastTime, int status) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.idNumber = idNumber;
        this.passWord = passWord;
        this.deliveryNumber = deliveryNumber;
        this.registeredTime = registeredTime;
        this.lastTime = lastTime;
        this.status = status;
    }

    public EDelivery(String name, String phone, String idNumber, String passWord) {
        this.name = name;
        this.phone = phone;
        this.idNumber = idNumber;
        this.passWord = passWord;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EDelivery eDelivery = (EDelivery) o;
        return id == eDelivery.id && status == eDelivery.status && Objects.equals(name, eDelivery.name) && Objects.equals(phone, eDelivery.phone) && Objects.equals(idNumber, eDelivery.idNumber) && Objects.equals(passWord, eDelivery.passWord) && Objects.equals(deliveryNumber, eDelivery.deliveryNumber) && Objects.equals(registeredTime, eDelivery.registeredTime) && Objects.equals(lastTime, eDelivery.lastTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, phone, idNumber, passWord, deliveryNumber, registeredTime, lastTime, status);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getDeliveryNumber() {
        return deliveryNumber;
    }

    public void setDeliveryNumber(String deliveryNumber) {
        this.deliveryNumber = deliveryNumber;
    }

    public Timestamp getRegisteredTime() {
        return registeredTime;
    }

    public void setRegisteredTime(Timestamp registeredTime) {
        this.registeredTime = registeredTime;
    }

    public Timestamp getLastTime() {
        return lastTime;
    }

    public void setLastTime(Timestamp lastTime) {
        this.lastTime = lastTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public EDelivery() {
    }
}
